LongProgression

open class LongProgression : Iterable<Long>

A progression of values of type Long.

Types

Companion
Link copied to clipboard
object Companion

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
isEmpty
Link copied to clipboard
open fun isEmpty(): Boolean

Checks if the progression is empty.

iterator
Link copied to clipboard
open operator override fun iterator(): LongIterator

Returns an iterator over the elements of this object.

toString
Link copied to clipboard
open override fun toString(): String

Properties

first
Link copied to clipboard
val first: Long

The first element in the progression.

last
Link copied to clipboard
val last: Long

The last element in the progression.

step
Link copied to clipboard
val step: Long

The step of the progression.

Inheritors

LongRange
Link copied to clipboard

Extensions

reversed
Link copied to clipboard
fun LongProgression.reversed(): LongProgression

Returns a progression that goes over the same range in the opposite direction with the same step.

step
Link copied to clipboard
infix fun LongProgression.step(step: Long): LongProgression

Returns a progression that goes over the same range with the given step.